package com.aner.test.controller;
import com.aner.tester.controller.BaseControllerTest;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.aner.tester.utils.text.StringUtils;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


/**
 * LoginControllerTest class
 * 
 * @author aner
 * @date 2020-12-30
 */
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@RunWith(SpringRunner.class)
@AutoConfigureMockMvc
public class LoginControllerTest extends BaseControllerTest
{

    @Test
    public void loginTest() {
        String params = "{'password':'狗猪狗1','username':'四省小猫东'}";
        String jsonStr = StringUtils.replaceSingleQuoteWithDouble(params);
                    this.postBody("/login", jsonStr);
        
    }
}
